using System;
using AtDevice;

namespace GtkControls
{
    
    
    [Gtk.TreeNode (ListOnly=true)]
    public class PhoneBookNode : Gtk.TreeNode
    {
        private PhoneBookEntry _entry;
        
        public PhoneBookNode(PhoneBookEntry entry)
        {
            _entry = entry;
        }
        
        [Gtk.TreeNodeValue (Column=0)]
        public string Name { get { return _entry.Name; } }
        
        [Gtk.TreeNodeValue (Column=1)]
        public string Number { get { return _entry.MobileNumber; } }
        
        [Gtk.TreeNodeValue (Column=2)]
        public string OfficeNumber { get { return _entry.OfficeNumber; } }
        
        [Gtk.TreeNodeValue (Column=3)]
        public string HomeNumber { get { return _entry.HomeNumber; } }
        
        [Gtk.TreeNodeValue (Column=4)]
        public string Email { get { return _entry.Email; } }
        
        [Gtk.TreeNodeValue (Column=5)]
        public string Remarks { get { return _entry.Remarks; } }
        
        public PhoneBookEntry Entry { get { return _entry; } } 
    }
}
